package com.crm.service;

import java.util.List;

import org.springframework.data.domain.Page;

import com.crm.entity.Comments;


public interface CommentsService {

	
	/**
	 * 
	* @Title: findConmmentsByTopicId
	* @author  
	* @Description: 按话题查询评论带分页
	* @param topicId
	 * @param pageIndex 
	* @return
	* @return List<Comments>
	 */
	Page<Comments> findConmmentsByTopicId(String topicId, Integer pageIndex);

	/**
	 * 
	* @Title: addComments
	* @author  
	* @Description: 发表评论
	* @param comments
	* @return void
	 */
	void addComments(Comments comments);

	/**
	 * 
	* @Title: getConmments
	* @author  
	* @Description: 查询所有评论
	* @param topicId
	* @return
	* @return List<Comments>
	 */
	List<Comments> getConmments(String topicId);

	/**
	 * 
	* @Title: getConmmentsByPage
	* @author  
	* @Description: 按话题查询评论带分页
	* @param pageIndex
	* @param topicId
	* @return
	* @return Page<Comments>
	 */
	Page<Comments> getConmmentsByPage(Integer pageIndex, String topicId);

}
